package com.situation.mapper;

import com.situation.pojo.DO.TbMenu;
import com.situation.pojo.DO.TbRole;
import com.situation.pojo.VO.RoleVO;
import org.springframework.stereotype.Component;

import javax.management.relation.Role;
import java.util.List;

@Component
public interface RoleMapper {

    int add(RoleVO roleVO);

    int authority(Long RoleId, Long menuId);

    int delete(Long id);

    RoleVO edit(Long id);

    List<RoleVO> findRoleList(RoleVO roleVO);

    List<TbMenu> findRoleMenu(Long id);

    int update(RoleVO roleVO);

    int updateStatus(Long id, Integer status);

    List<TbRole> selectAll();
}
